// 全局注册组件入口
// 骨架组件
import XtxSkeleton from '@/components/XtxSkeleton/XtxSkeleton.vue'
// 轮播图组件
import XtxCarousel from '@/components/XtxCarousel/XtxCarousel.vue'
// 查看全部组件
import XtxMore from '@/components/XtxMore/XtxMore.vue'
// 面包屑组件
import XtxBread from '@/components/XtxBread/XtxBread.vue'
import XtxBreadItem from '@/components/XtxBread/XtxBreadItem.vue'
// 商品数量组件
import XtxNumber from '@/components/XtxNumber/XtxNumber.vue'
// 按钮组件
import XtxButton from '@/components/XtxButton/XtxButton.vue'
// 省市区组件
import XtxCity from '@/components/XtxCity/XtxCity.vue'
// 复选框
import XtxCheckbox from '@/components/XtxCheckbox/XtxCheckbox.vue'
// 消息提示组件
import XtxMessage from '@/components/XtxMessage/XtxMessage.vue'
// dialog弹出组件
import XtxDialog from '@/components/XtxDialog/XtxDialog.vue'
import XtxSwitch from '@/components/XtxSwitch/XtxSwitch.vue'
import XtxConfirm from '@/components/XtxConfirm/XtxConfirm.vue'
// 导入app的类型
import { App } from 'vue'

export default {
    install(app: App) {
        app.component('XtxSkeleton', XtxSkeleton)
        app.component('XtxCarousel', XtxCarousel)
        app.component('XtxMore', XtxMore)
        app.component('XtxBread', XtxBread)
        app.component('XtxBreadItem', XtxBreadItem)
        app.component('XtxNumber', XtxNumber)
        app.component('XtxButton', XtxButton)
        app.component('XtxCity', XtxCity)
        app.component('XtxCheckbox', XtxCheckbox)
        app.component('XtxMessage', XtxMessage)
        app.component('XtxDialog', XtxDialog)
        app.component('XtxSwitch', XtxSwitch)
        app.component('XtxConfirm', XtxConfirm)
    }
}